﻿package net.wangit.user.role;

import net.wangit.framework.cache.Cache;
import net.wangit.framework.util.CacheUtil;

public class RoleCache {

	public RoleCache() {
	}

	public static Role get(String roleId) {
		return (Role) getCache().get(roleId);
	}

	public static void put(String roleId, Role role) {
		getCache().put(roleId, role);
	}

	public static void clear(String roleId) {
		getCache().clear(roleId);
	}

	public static void clearAll() {
		getCache().clearAll();
	}

	private static Cache getCache() {
		return CacheUtil.getRoleCache();
	}
}
